<!DOCTYPE html>
<html>
<head>
<title>二维码信息</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<div class="form-group col-sm-2">
				<input id="keyword" type="hidden" class="form-control" v-model="q.shopName" @keyup.enter="query" placeholder="收款员名称">
			</div>
			#if($shiro.hasPermission("qrCode:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("qrCode:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
			<a class="btn btn-primary" onclick="showInfo()"><i class=""></i>&nbsp;预览二维码</a>
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
         <div v-show="!showList" class="panel panel-default" id="edit">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
		<input type="hidden"  v-model="qrCode.merchantId">
		<div class="form-group">
	   	 	<label class="control-label col-sm-2">企业名称</label>
		   	<div class="col-sm-10">
		      <input type="text" class="form-control"  v-model="qrCode.shopName"  readonly="readonly"/>
		    </div>
		</div>
		<div class="form-group">
		   	<div class="col-sm-2 control-label">银行下拉</div>
		   	<div class="col-sm-10">
		   		<select v-model="qrCode.bankId" class="form-control">
					  <option v-for="option in bankOptions" v-bind:value="option.value">
					    {{ option.text }}
					  </option>
				</select>
		    </div>
		</div>
	    <div class="form-group">
	    	<label class="control-label col-sm-2">收款码名称</label>
	        <div class="col-sm-10">
	        	<input type="text" id="codeName" v-model="qrCode.codeName" class="form-control" maxlength="10" placeholder="收款码名称"/>
	        </div>
	    </div>
	   <div class="form-group">
			<div class="col-sm-2 control-label"></div> 
			<input id="submitBtn" type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
			&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
		</div>
		</form>
	</div>
	
</div>

<script src="${rc.contextPath}/js/qrCode/qrCodeList.js?_${date.systemTime}"></script>
</body>
</html>